package cn.golxen.rsms.controller;

import cn.golxen.rsms.bean.bo.BusinessDateBo;
import cn.golxen.rsms.commons.Result;
import cn.golxen.rsms.service.CustomerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(value = "/customer")
public class CustomerController {
    @Autowired
    CustomerService customerService;

    @PostMapping(value = "/get/customerNewAndOld")
    public Result getCustomerNewAndOldVo(@RequestBody BusinessDateBo bo){
        return Result.successResult(customerService.getCustomerNewAndOldVo(bo));
    }
}
